<script type="application/javascript">
    $(function () {
        $(".update_inventroy").Validform({
            tiptype: 2,
            ajaxPost: true,
            callback: function (data) {
                setTimeout(function () {
                    $.Hidemsg();
                }, 2000);
            }
        });
        $("#rem").ready(function () {
            $("#rem").ajaxForm(function (re) {
                //alert(222);
                //alert(re.info);
                window.location.reload();
            });
        });

    })
</script>
<form action="<?php echo url::base(true) ?>checkstock/doUpdatePandian" method="post" id="rem">
    <div class="control-group">
        <label>&nbsp;&nbsp;&nbsp;SKU:</label>
        <input type="text" name="sku" value="<?php echo isset($sku_info['sku'])?$sku_info['sku']:''; ?>"
               readonly="readonly">
    </div>
    <div class="control-group">
        <label> &nbsp;&nbsp;&nbsp;名称:</label>
        <input type="text" value="<?php echo isset($sku_info['sku_name'])?$sku_info['sku_name']:''; ?>"
               readonly="readonly">
    </div>
    <div class="control-group">
        <label>库存量:</label>
        <input type="text" name="stock_old" value="<?php echo isset($stock_old)?$stock_old:''; ?>" readonly="readonly">
    </div>
    <div class="control-group">
        <label>盘点量:</label>
        <input type="text" name="stock_new" value="" onkeyup="clearNoNum(this)">
    </div>
    <div style="text-align: center">
        <input type="hidden" name="status" value="<?php echo isset($num)?$num:2; ?>">
        <input type="submit" value="修改" class="btn btn-info"/>
    </div>
</form>
